package com.iter.devbox.util;

import java.util.ResourceBundle;

public class MyResourceBundle {

	/**读properties文件，实现国际化*/
	public static void main(String[] args) {
		ResourceBundle resourceBundle = ResourceBundle.getBundle("cassandra");
		String contactpoints = resourceBundle.getString("cassandra.contactpoints");
		System.out.println(contactpoints);
		
		ResourceBundle config = ResourceBundle.getBundle("config");
		String aa = config.getString("aa");
		System.out.println(aa);
	}

}